home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / info / w3-faq.info.z / w3-faq.info
Encoding:
GNU Info File  |  1998-05-21  |  15.6 KB  |  400 lines

  1. This is Info file ../info/w3-faq.info, produced by Makeinfo version
  2. 1.68 from the input file w3-faq.texi.
  3.  
  4. INFO-DIR-SECTION FAQs
  5. INFO-DIR-SECTION GNU Emacs Lisp
  6. START-INFO-DIR-ENTRY
  7. * Emacs/W3 FAQ: (w3-faq).          FAQ for Emacs/W3 World Wide Web browser.
  8. END-INFO-DIR-ENTRY
  9.  
  10. 
  11. File: w3-faq.info,  Node: Frequently Asked Questions,  Next: Installation FAQ,  Prev: (dir),  Up: (dir)
  12.  
  13. Frequently Asked Questions
  14. ==========================
  15.  
  16.    This is the Emacs/W3 Frequently Asked Questions list.
  17.  
  18. * Menu:
  19.  
  20. * Installation FAQ::      Installation of Emacs/W3.
  21. * Runtime FAQ::           Running Emacs/W3.
  22. * Arcana::                Obscure, but cool.
  23. * Customization FAQ::     Customizing Emacs/W3.
  24.  
  25. 
  26. File: w3-faq.info,  Node: Installation FAQ,  Next: Runtime FAQ,  Prev: Frequently Asked Questions,  Up: Frequently Asked Questions
  27.  
  28. Installation
  29. ------------
  30.  
  31.    * Q1.1  What is the latest version of Emacs/W3?
  32.  
  33.      The latest version is Exp.
  34.  
  35.    * Q1.2  Where do I get Emacs/W3?
  36.  
  37.      Any of the following locations:
  38.  
  39.         - `http://www.cs.indiana.edu/elisp/w3/download.html'
  40.  
  41.         - `ftp://ftp.cs.indiana.edu/pub/elisp/w3/'
  42.  
  43.    * Q1.3  Which version of Emacs do I need?
  44.  
  45.      At least GNU Emacs 19.34, or XEmacs 19.14 is recommended.  GNU
  46.      Emacs 19.28 has been known to work, but highlighting will not work
  47.      due to differences in how faces are handled in newer Emacs
  48.      versions.
  49.  
  50.    * Q1.4  I get './configure: sh internal 2K buffer overflow' when
  51.      configuring.
  52.  
  53.      On some systems (notably HP-UX 9.x), the standard /bin/sh is not
  54.      quite up to snuff.  You should use bash to run configure if you
  55.      possibly can, ie: bash ./configure [standard-arguments]
  56.  
  57.      If anyone has ideas about how I could fix my autoconf sources,
  58.      please contact `mailto:wmperry@aventail.com'.
  59.  
  60.    * Q1.5  How can I build Emacs/W3 under Windows 95 or Windows NT?
  61.  
  62.    * Q1.6  How can I build Emacs/W3 under VMS?
  63.  
  64.    * Q1.7  I still want to use Emacs 19, are there any special problems?
  65.  
  66.      Since Emacs 19.x does not include a suitably `new' version of the
  67.      custom and widget libraries, you will need to install them
  68.      yourself.  Please see `http://www.dina.kvl.dk/~abraham/custom/'
  69.      for more information on installing.  After this, you will need to
  70.      re-run your configure script, including the
  71.      -with-custom=/path/to/custom/library/directory.
  72.  
  73. 
  74. File: w3-faq.info,  Node: Runtime FAQ,  Next: Arcana,  Prev: Installation FAQ,  Up: Frequently Asked Questions
  75.  
  76. Runtime
  77. -------
  78.  
  79.    * Q2.1  The options menu is ugly under Emacs 19
  80.  
  81.      In Emacs 19, Emacs/W3 uses the 'easymenu' package to define menus.
  82.      Unfortunately, this package does not show the current state of a
  83.      boolean menu entry, it just shows as 'Toggle xxxx'.
  84.  
  85.      This feature-lack will be fixed in Emacs 19.35 or Emacs 20.1 when
  86.      they are released.
  87.  
  88.    * Q2.2  Animated GIFs cause XEmacs 19.14 or 20.0 to crash.
  89.  
  90.      There was a bug in the GIF decoding routines in XEmacs 19.14 and
  91.      20.0 - please update to XEmacs 19.15 or 20.1 respectively.
  92.  
  93.    * Q2.3  I get an error when starting up about custom-declare-group
  94.  
  95.      This usually means you compiled Emacs/W3 in an emacs that could
  96.      not find the 'custom' package (or found an old version), but you
  97.      are running it in an emacs that finds the new one.  This is
  98.      usually the case if you have a recent version of GNUS installed in
  99.      a non-standard place.
  100.  
  101.      Make sure that you can load the custom library when compiling
  102.      emacs.  Set the environment variable WIDGETDIR to where your
  103.      custom library lives (ie: ~/lisp/gnus/lisp), or rerun configure
  104.      with the '-with-custom=/full/path/to/custom/lisp/' command line
  105.      argument and then remake with a 'make clean all'.
  106.  
  107.    * Q2.4  It is incredibly slow under OS/2
  108.  
  109.      This appears to be a problem with how fonts are looked up.  Thanks
  110.      to chang@wsu.edu for this analysis.
  111.  
  112.      In OS/2, the font name default to forms like
  113.  
  114.           "-*-Courier-medium-r-normal--*-100-*-*-m-*-cp850" ......
  115.           or
  116.           "10.Courier"
  117.  
  118.      In these two cases, font detection fails because this does not
  119.      match x-font-regexp.
  120.  
  121.      To solve this, set the default font as
  122.      "-*-Courier-medium-r-normal-*-100-*-*-m-*-cp850-1"
  123.  
  124.    * Q2.5  How do I make emacs scroll the window horizontally when
  125.      moving?
  126.  
  127.      In XEmacs, you should simply put something like this in your .emacs
  128.      file:
  129.  
  130.              (add-hook 'w3-mode-hook '(lambda () (auto-show-mode 1)))
  131.  
  132.      Under Emacs 19, there are a variety of different packages that
  133.      provide this functionality.  The one I have seen used the most is
  134.      'hscroll.el', from
  135.      `http://reality.sgi.com/wmesard/ftp/emacs/hscroll.el' - to turn it
  136.      on, add this to your .emacs file:
  137.  
  138.              (autoload 'turn-on-hscroll "hscroll" nil t)
  139.              (add-hook 'w3-mode-hook 'turn-on-hscroll)
  140.  
  141.    * Q2.6  I like being warned about invalid HTML on my own pages, but
  142.      how       can I make Emacs/W3 stop telling me almost everything on
  143.      the Web       is invalid?
  144.  
  145.      Snide answer: Make everyone start writing valid HTML pages. :)
  146.  
  147.      Real answer: You can use the file preparation hook, which is run
  148.      before any parsing is done.  Something like this should work.
  149.  
  150.           (defun my-w3-file-prepare-hook ()
  151.             (make-local-variable 'w3-debug-html)
  152.             (setq w3-debug-html
  153.                 (if (or (string= (url-type url-current-object) "file")
  154.                         (string-match ".*\\.some\\.domain\\.name"
  155.                                       (or (url-host url-current-object) "")))
  156.                     'style
  157.                   nil)))
  158.           (add-hook 'w3-file-prepare-hook 'my-w3-file-prepare-hook)
  159.      This will turn on stylistic warnings for any local HTML files or
  160.      files loaded from the `*.some.domain.name' domain.
  161.  
  162.    * Q2.7  I get an error restarting Emacs after using the preferences
  163.      menu       in Emacs/W3:       `Symbol's function definition is
  164.      void: custom-set-variables'
  165.  
  166.      Typically this happens if you are running GNU Emacs 19.  Because
  167.      the custom libraries are not bundled with Emacs, you need to make
  168.      sure that you load it from within your .emacs file.   Place the
  169.      following line before any of the calls to `custom-set-variables':
  170.  
  171.           (require 'custom)
  172.  
  173.    * Q2.8  When using Emacs 20.x, a \201 character appears in the buffer
  174.           before every character above ASCII 127?
  175.  
  176.      You should install the LEIM package and put the following line in
  177.      your .emacs file:
  178.  
  179.           (set-language-environment 'Latin-1)
  180.  
  181.      LEIM packages for Emacs 20.x are located at
  182.      `ftp://prep.ai.mit.edu/pub/gnu/', filename is `leim-XX.Y.tar.gz',
  183.      where XX.Y matches the Emacs version you are currently running.
  184.  
  185.    * Q2.9  All my FTP directory listings show up as HTML!  I HATE THAT!
  186.  
  187.      This will happen if you are going through a web-based proxy
  188.      server.  To use the normal ftp support that Emacs provides, you
  189.      will need to set up the no-proxy section of your proxy services to
  190.      not include any ftp traffic  *Note Proxy Gateways: (w3)Proxy
  191.      Gateways.  You must then also configure Ange-FTP or EFS to know
  192.      about your specific proxy setup.
  193.  
  194.      After all this pain and anguish, you will see your FTP directories
  195.      in dired as the gods intended.
  196.  
  197.    * Q2.10 Why can't I choose an option in an HTML form using the
  198.      minibuffer       instead of the #%!@ing 'widget choose' buffer?
  199.  
  200.      This is in the hands of the widget library.  Thankfully, there is a
  201.      way to change this behaviour.  Set the variable
  202.      `widget-menu-minibuffer-flag' to `t' in your `~/.emacs' file, and
  203.      you will get the expected behaviour.
  204.  
  205. 
  206. File: w3-faq.info,  Node: Arcana,  Next: Customization FAQ,  Prev: Runtime FAQ,  Up: Frequently Asked Questions
  207.  
  208. Arcana
  209. ------
  210.  
  211.    * Q3.1  Can I have keyboard traversal for next/previous document, as
  212.           specified by the HTML document?
  213.  
  214.      Thanks to Toby Speight <Toby.Speight@ansa.co.uk> for this answer.
  215.  
  216.           (defun w3-next-document ()
  217.             (interactive)
  218.             (let ((link (or (let ((rel (assq 'rel w3-current-links)))
  219.                               (and rel (assoc "next" rel)))
  220.                             (let ((rev (assq 'rev w3-current-links)))
  221.                               (and rev (or (assoc "previous" rev)
  222.                                            (assoc "prev" rev))))))
  223.                   href)
  224.               (and link (setq link (cdr link)))
  225.               (while (and link (null href))
  226.                 (setq href (plist-get (car link) 'href))
  227.                 (setq link (cdr link)))
  228.               (if href
  229.                   (w3-fetch href)
  230.                 (error "No NEXT document"))))
  231.           (define-key w3-mode-map (read-kbd-macro "M-SPC") 'w3-next-document)
  232.           
  233.           (defun w3-prev-document ()
  234.             (interactive)
  235.             (let ((link (or (let ((rel (assq 'rel w3-current-links)))
  236.                               (and rel (or (assoc "previous" rel)
  237.                                            (assoc "prev" rel))))
  238.                             (let ((rev (assq 'rev w3-current-links)))
  239.                               (and rev (assoc "next" rev)))))
  240.                   href)
  241.               (and link (setq link (cdr link)))
  242.               (while (and link (null href))
  243.                 (setq href (plist-get (car link) 'href))
  244.                 (setq link (cdr link)))
  245.               (if href
  246.                   (w3-fetch href)
  247.                 (error "No PREVIOUS document"))))
  248.           (define-key w3-mode-map (read-kbd-macro "M-DEL") 'w3-prev-document)
  249.  
  250.      Tested with Emacs/W3 v3.0.94.  No animals used during testing.
  251.      Conforms to Bogus Standard TMS-9001, part 1(a).  100% Pure Elisp.
  252.      Keep out of reach of children.  Do not expose to naked old flames.
  253.      Do not use in temperatures exceeding 323.15K.
  254.  
  255.    * Q3.2  How do i get Shift-Tab to go backwards on a text terminal or
  256.      XTerm?
  257.  
  258.      aka: I hate the new text widgets, I can't go through the links
  259.      with n and b      I can go forward using TAB but how do i go
  260.      backward on a terminal?
  261.  
  262.      Thanks to Greg Stark <gsstark@mit.edu> for this incredibly thorough
  263.      answer.  I have verified that this works on my Linux laptop.
  264.  
  265.      Not all terminals can distinguish between a shifted tab and an
  266.      unshifted tab at all. Tab is indicated on a text terminal by a
  267.      control-i. There is no such thing as capital control characters,
  268.      so if the terminal is going to indicate a shift-tab somehow it has
  269.      to be completely differently. The most appropriate thing to use is
  270.      probably "backtab" which on old text terminals was sometimes a
  271.      separate key and Emacs is already set up to recognize
  272.      automatically if it exists.
  273.  
  274.      Making "backtab" work involves several steps. First you have to
  275.      make sure your console generates some character sequence to
  276.      indicate the key you want to generate a "backtab". Then you have
  277.      to configure termcap or terminfo to recognize that key sequence.
  278.      Then you may have to make your programs do useful things when they
  279.      get a "backtab", Emacs for example will recognize it automatically
  280.      but except for the Widget and W3 commands nothing is ever bound it
  281.      it.
  282.  
  283.      Step 1 On An XTerm: XTerm obeys standard X Toolkit translations
  284.      which you can use to specify what character sequence Shift-Tab
  285.      generates. The following X Resources will cause Shift-Tab and
  286.      Meta-Shift-Tab to generate reasonable character sequences. You can
  287.      either put this in your .Xresources or .Xdefaults file, or you can
  288.      put it in /usr/lib/X11/app-defaults/XTerm to make it a site-wide
  289.      default. (On Debian systems you should put it in
  290.      /etc/X11/Xresources, not the app-defaults files):
  291.  
  292.           XTerm*VT100.translations: #override \
  293.              ~Meta Shift<Key>Tab: string(\033[Z) \n\
  294.               Meta Shift<Key>Tab: string(\033\033[Z) \n
  295.  
  296.      I recommend these sequences, they are based on what seems to be a
  297.      more or less standard sequence ^[[Z for backtab.
  298.  
  299.      Step 1 On Rxvt: By default Rxvt sends ^[[Z for Shift-Tab.
  300.      However, if Shift-Tab generates another keysym, like for example
  301.      in XFree86 3.2 where it's bound to ISO_Left_Tab then Rxvt will
  302.      just ignore it. You would need to defeat this feature to make rxvt
  303.      work again by doing something like:
  304.  
  305.           xmodmap -e 'keysym Tab = Tab'
  306.  
  307.      or adding that command to some global X configuration file (On
  308.      Debian systems adding "Keysym Tab = Tab" to /etc/X11/Xmodmap or
  309.      ~/.Xmodmap is sufficient)
  310.  
  311.      Step 1 On A Linux Virtual Console: on a Linux virtual console you
  312.      can configure what character sequences are generated by which keys
  313.      using the loadkeys command. Many systems are set up to run
  314.      loadkeys automatically on startup with some keymap file. On Debian
  315.      systems this is true, the keymap file is specified in
  316.      /etc/kbd/config and usually lives in the /usr/lib/kbd/keytables
  317.      directory. You want to put something like the following in your
  318.      keytable file:
  319.  
  320.           keycode  15 = Tab   F91
  321.               alt     keycode  15 = Meta_Tab
  322.               shift   alt     keycode  15 = F92
  323.  
  324.      where keycode 15 is Tab on my keyboard (and probably any
  325.      keyboard). This defines Tab and Alt-Tab normally, and also defines
  326.      Shift-Tab to be F91 and Shift-Alt-Tab to be F92.
  327.  
  328.      Then put something like this:
  329.  
  330.           # backtab and M-backtab
  331.           string F91 = "\033[Z"
  332.           string F92 = "\033\033[Z"
  333.  
  334.      later in the file. This defines what character sequence F91
  335.      (Shift-Tab) and F92 (Alt-Shift-Tab) should generate. I recommend
  336.      these sequences, they are based on what seems to be a more or less
  337.      standard sequence ^[[Z for backtab.
  338.  
  339.      Step 2 On A Termcap System:
  340.  
  341.      The termcap capability is kB, i'm not familiar with termcap tools,
  342.      i think you just need to add it to the /etc/termcap file for the
  343.      terminal you're concerned with as kB=\E[Z.
  344.  
  345.      Step 2 On A Terminfo System:
  346.  
  347.      The terminfo capability is kcbt (the long name is key_btab). You
  348.      want to run infocmp to generate an edittable copy of the terminal
  349.      info. Add the capability, then use tic to compile that
  350.      information. Something like this:
  351.  
  352.      infocmp $TERM > info emacs info & # add kcbt=\E[Z, to the file tic
  353.      info
  354.  
  355.      If you do this as root it should add the new definition to the
  356.      system wide terminfo database. If you do it as a normal user it
  357.      should create a ~/.terminfo database with a local terminfo info
  358.      definition for that terminal.
  359.  
  360.      Step 3 On Emacs:
  361.  
  362.      The standard terminal initialization should recognize the backtab
  363.      capability automatically. To test it try C-h c Shift-Tab and see
  364.      what it calls the key.  To bind commands to it just use [backtab]
  365.      in local-set-key or global-set-key as in:
  366.  
  367.           (local-set-key [backtab] 'hippie-expand)
  368.           or
  369.           (global-set-key [backtab] 'hippie-expand)
  370.  
  371.      In the interest of maintaining a single consistent set of key
  372.      bindings between X and tty emacsen you may want to make equivalent
  373.      X keystroke generate "backtab" as well, you can do this by doing
  374.      this:
  375.  
  376.      (define-key function-key-map [S-tab] [backtab]) or (define-key
  377.      function-key-map [iso-lefttab] [backtab])
  378.  
  379.      To make S-tab or whatever keystroke you made generate backtab on a
  380.      terminal be recognized as backtab under X11 as well. You can check
  381.      how Emacs recognizes this keystroke currently by doing C-h c
  382.      <keystroke>.
  383.  
  384. 
  385. File: w3-faq.info,  Node: Customization FAQ,  Prev: Arcana,  Up: Frequently Asked Questions
  386.  
  387. Customization
  388. -------------
  389.  
  390.  
  391. 
  392. Tag Table:
  393. Node: Frequently Asked Questions278
  394. Node: Installation FAQ697
  395. Node: Runtime FAQ2375
  396. Node: Arcana7736
  397. Node: Customization FAQ15637
  398. 
  399. End Tag Table
  400.